#include<bits/stdc++.h>
#define int long long
using namespace std;
const int Maxn = 10010;
int sub, n, Q;
int xa[Maxn], ya[Maxn], xb[Maxn], yb[Maxn];
signed main(){
    ios::sync_with_stdio(false);
    freopen("dierti.in", "r", stdin);
    freopen("dierti.out", "w", stdout);
    cin >> sub >> n >> Q;
    for(int i = 1 ; i <= n ; i++){
        cin >> xa[i] >> ya[i] >> xb[i] >> yb[i];
    }
    while(Q--){
        int l, r;
        cin >> l >> r;
        int ans = 0;
        for(int i = l ; i <= r ; i++){
            ans += (xb[i] - xa[i]) * (yb[i] - ya[i]);
        }
        cout << ans << '\n';
    }
    return 0;
}
/*
0
3 3
1 2 2 3
1 1 3 3
2 1 3 3
1 2
2 3
1 3

*/